import request from '@/utils/request'

// 查询学生类型管理列表
export function listStudenttype(query) {
  return request({
    url: '/studenttype/studenttype/list',
    method: 'get',
    params: query
  })
}

// 查询学生类型管理详细
export function getStudenttype(stuTypeId) {
  return request({
    url: '/studenttype/studenttype/' + stuTypeId,
    method: 'get'
  })
}

// 新增学生类型管理
export function addStudenttype(data) {
  return request({
    url: '/studenttype/studenttype',
    method: 'post',
    data: data
  })
}

// 修改学生类型管理
export function updateStudenttype(data) {
  return request({
    url: '/studenttype/studenttype',
    method: 'put',
    data: data
  })
}

// 删除学生类型管理
export function delStudenttype(stuTypeId) {
  return request({
    url: '/studenttype/studenttype/' + stuTypeId,
    method: 'delete'
  })
}
